home *** CD-ROM | disk | FTP | other *** search
/ 64'er Special 11 / 64er_Magazin_Sonderheft_11_86-11_1986_Markt__Technik_de_Side_A.d64 / programm nr. 2 (.txt) < prev    next >
Commodore BASIC  |  2022-10-26  |  462b  |  27 lines

  1. 100 rem   ***   programm nr.2   ***
  2. 110 :
  3. 120 ifz=0thenz=1:load"grafik modul",8,1
  4. 130 cls=938:plot=820
  5. 140 :
  6. 150 x0=160:y0=100  :rem  mittelpunkt
  7. 160 xr=90 :yr=80   :rem  x & y-radius
  8. 170 :
  9. 180 poke53265,59:poke53272,24:print"[147]"
  10. 190 sys cls
  11. 200 :
  12. 210 forx=xrto0step-1
  13. 220 y=sqr(xr*xr-x*x)*yr/xr:y2=y
  14. 230 sys plot,x0+x,y0+y
  15. 240 sys plot,x0+x,y0-y
  16. 250 sys plot,x0-x,y0+y
  17. 260 sys plot,x0-x,y0-y
  18. 270 y=y-1:ify>y1then230
  19. 280 y1=y2
  20. 290 nextx
  21. 300 :
  22. 310 poke198,0:wait198,1:geta$
  23. 320 :
  24. 330 poke53265,27:poke53272,21
  25. 340 end
  26. 350 :
  27.